package com.oasystem.domain;

import java.io.Serializable;
import java.sql.Date;

public class Goods implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = -2055492316819943467L;
	private int id;
	private String name;
	private double price;
	private Date createDate;
	
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public double getPrice() {
		return price;
	}

	public void setPrice(double price) {
		this.price = price;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public void copy(Goods goods) {
		this.id=goods.getId();
		this.name=goods.getName();
		this.price=goods.getPrice();
		this.createDate=goods.getCreateDate();
	}

}
